/*package br.com.stefanini.schs.ejb.sessionBean;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;

import br.com.stefanini.schs.ejb.entity.Gerente;

@Stateless
public class GerenteSessionBean {

	@PersistenceContext
	private EntityManager entityManager;
	
	public Gerente consultarGerenteEmail(String email){
		Query query = entityManager.createNamedQuery("Gerente.consultaGerentePorEmail");
		query.setParameter("email", email);
		try {
			return (Gerente) query.getSingleResult();
		} catch (NoResultException e) {
			return null;
		}
	}
	
	
}
*/